package com.mxchip.livestar.ui.settings

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.mxchip.livestar.repository.RoomClientRepository
import com.mxchip.livestar.utils.MyLog
import com.videohigh.graham.AuthInfo

class MainViewModel : ViewModel() {
    private val TAG = "MainViewModel"
    // private val sampleSDK = SampleSDK.getInstance()
    val authInfo: MutableLiveData<AuthInfo> = MutableLiveData<AuthInfo>()
    fun getData() {
        RoomClientRepository.getAuthInfo({ data ->
            authInfo.postValue(data)


        }, { code, message ->
            MyLog.logE(MyLog.SETTING_VIEW_MODEL, "$code $message: ")
        })
    }
}
